package com.nf.test1;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class Person {
private String pname;
private List<Car> carList=new ArrayList<Car>();
private Map<String,Car> carMap=new HashMap<String,Car>();

    public Map<String, Car> getCarMap() {
        return carMap;
    }

    public void setCarMap(Map<String, Car> carMap) {
        this.carMap = carMap;
    }

    public String getPname() {

        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public List<Car> getCarList() {
        return carList;
    }

    public void setCarList(List<Car> carList) {
        this.carList = carList;
    }
}
